#217 - Madrid

owner = CAS		#Juan II of Castille
controller = CAS
add_core = CAS
culture = castillian
religion = catholic
hre = no
base_tax = 11 
trade_goods = wool 
manpower = 5
fort1 = yes
capital = "Madrid" 
citysize = 5000 #includes the population of Alcal de Henares and Guadalajara, that at times were bigger than Madrid itself  
discovered_by = latin
discovered_by = eastern
discovered_by = muslim

1463.1.1   = { marketplace = yes } # King Enrique IV grants the town the rights to celebrate a weekly market (confirmed in 1545 by Charles I)
1476.1.1   = { controller = REB } # The partidaries of Juana la Beltraneja take the city, with the support of Alfonso of Portugal
1477.1.1   = {	controller = CAS
		fort1 = no
	     } # Falls to the troops loyal to Isabel, the walls are destroyed to prevent further revolts
1500.1.1   = { citysize = 8340 }
1508.10.18 = { university = yes } #The Complutense University is built in Alcal de Henares
1516.1.23  = {	controller = SPA
		owner = SPA
		add_core = SPA
	     } # King Fernando dies, Carlos inherits Aragon and becames co-regent of Castille
1520.6.1   = { controller = REB fort1 = yes } #The revolt of the comuneros, started in Toledo, reaches Madrid, new fortifications are built to defend the city but ultimately the royalists are defeated.
1521.4.1   = { controller = SPA } # The Comuneros are defeated
1530.1.1   = { citysize = 14000 constable = yes } # census of 1530
1561.7.1   = { citysize = 25000 } # Felipe II centralizes all government offices in Madrid, that becomes de facto capitol of the Empire 
1569.1.1   = { citysize = 35000 } # Census of 1569
1598.1.1   = { citysize = 60000 }
1625.1.9   = { fort2 = yes } # King Felipe IV orders the construction of a new city wall (actually without a defensive function)
1656.1.1   = { citysize = 100000 }
1699.1.1   = { revolt_risk = 3 } # Restlessness due to prolonged famines
1700.1.1   = { revolt_risk = 0 } # The King is forced to adopt measures to appease the population, a new corregidor is elected
1706.6.25  = { controller = ENG } # Anglo-portuguese troops take the city in the name of Archduke Carlos of Austria
1706.8.4   = { controller = SPA } # Troops loyal to Felipe V recover the city
1710.1.1   = { tax_assessor = yes }
1710.9.27  = { controller = HAB } # Archduke Carlos takes the city
1710.11.9  = { controller = SPA } # Archduke Carlos leaves the city due to the pressure of partidaries of Felipe V
1713.4.11  = { remove_core = CAS }
1723.1.1   = { citysize = 130000 }
1766.3.23  = { revolt_risk = 3 } # Esquilache mutiny
1766.12.1  = { revolt_risk = 0 } # The King grants a pardon and comes back to Madrid, after the situations has stabilised.
1800.1.1   = { citysize = 132500 }
1808.5.1   = { controller = RFR } # Invaded by the French army
1808.5.2   = { controller = REB } # Doe de Mayo
1808.5.3   = { controller = SPA }
1813.3.19  = { controller = REB }
1813.12.11 = { controller = SPA }
